package hesso.smartdraw.ch.model;

import java.util.ArrayList;

public class Device {

	private int id = 0;
	private String name = "default";
	private Layer layer = null;
	private ArrayList<Input> inputs = new ArrayList<Input>();
	private ArrayList<Output> outputs = new ArrayList<Output>();
	
	public Device(){
		
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Layer getLayer() {
		return layer;
	}

	public void setLayer(Layer layer) {
		this.layer = layer;
	}

	public ArrayList<Input> getInputs() {
		return inputs;
	}

	public void setInputs(ArrayList<Input> inputs) {
		this.inputs = inputs;
	}

	public ArrayList<Output> getOutputs() {
		return outputs;
	}

	public void setOutputs(ArrayList<Output> outputs) {
		this.outputs = outputs;
	}
	
	public void addInput(Input input){
		this.inputs.add(input);
	}
	
	public void removeInput(Input input){
		this.inputs.remove(input);
	}
	
	public void addOutput(Output output){
		this.outputs.add(output);
	}
	
	public void removeOutput(Output output){
		this.outputs.remove(output);
	}
}